package siedler.communication;

public class DiceCommitment {

	private PeerI playerRef;
	
	// values the player P possessing this Object received from playerRef as parameter of helpMeThrowTheDice()
	// hash1, hash2 constitute the commitments of playerRef which serve to prevent playerRef from cheating
	private byte[] hash1, hash2;
	
	
	// values the player P possessing this Object sent to playerRef after helpMeThrowTheDice() was called at P
	private double sentParam1, sentParam2;  
	
	
	
	public DiceCommitment(PeerI playerRef, byte[] hash1, byte[] hash2){
		this.playerRef = playerRef;
		this.hash1 = hash1;
		this.hash2 = hash2;
	}

	public PeerI getPlayerRef() {
		return playerRef;
	}

	public void setPlayerRef(PeerI playerRef) {
		this.playerRef = playerRef;
	}

	public byte[] getHash1() {
		return hash1;
	}

	public void setHash1(byte[] hash1) {
		this.hash1 = hash1;
	}

	public byte[] getHash2() {
		return hash2;
	}

	public void setHash2(byte[] hash2) {
		this.hash2 = hash2;
	}
	
	public double getSentParam1() {
		return sentParam1;
	}

	public void setSentParam1(double sentParam1) {
		this.sentParam1 = sentParam1;
	}

	public double getSentParam2() {
		return sentParam2;
	}

	public void setSentParam2(double sentParam2) {
		this.sentParam2 = sentParam2;
	}
	
}
